import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'

// 引入公共CSS
import '@/assets/css/common.css'
// 淘宝无线适配
import '@/assets/js/flexible'
// 字体图标css文件
import '@/assets/css/iconfont.css'

// ly-tab插件
import LyTab from 'ly-tab'
Vue.use(LyTab)

// 全局引入 mint-ui
// import MintUI from 'mint-ui'
// import 'mint-ui/lib/style.css'
// Vue.use(MintUI)

// 按需引入 vant
import { Toast, Dialog, Lazyload, Stepper, Checkbox, Collapse, CollapseItem, Empty, Button, NavBar, Icon, Search, SwipeCell, Card, AddressEdit, AddressList, RadioGroup, Radio, Notify, Popup, Divider, Step, Steps, ActionSheet, Grid, GridItem, Image as VanImage } from 'vant'
Vue.use(Toast).use(Dialog).use(Lazyload).use(Stepper).use(Checkbox).use(Collapse).use(CollapseItem).use(Empty).use(Button).use(NavBar).use(Icon).use(Search).use(SwipeCell).use(Card).use(AddressEdit).use(AddressList).use(RadioGroup).use(Radio).use(Notify).use(Popup).use(Divider).use(Step).use(Steps).use(ActionSheet).use(Grid).use(GridItem).use(VanImage)

// import fastClick from 'fastclick'
// fastClick.attach(document.body);

Vue.prototype["$http"] = axios;
let baseURL = 'http://101.132.184.240/';
if (process.env.NODE_ENV === 'production') {
    baseURL = 'http://101.132.184.240/';
}
axios.defaults.baseURL = baseURL;




Vue.config.productionTip = false

new Vue({
    render: h => h(App),
    router,
    store
}).$mount('#app')